Azure Communication SMS Service (preview:2025-08-01)

2025/08/28 • 5 new methods

Sms_Send (new)
Description Sends a SMS message from a phone number that belongs to the authenticated account.
Reference Link ¶

⚼ Request

POST:  /sms
{
SendMessageRequest:
{
from: string ,
smsRecipients:
[
{
to: string ,
repeatabilityRequestId: string ,
repeatabilityFirstSent: string ,
}
,
]
,
message: string ,
smsSendOptions:
{
enableDeliveryReport: boolean ,
tag: string ,
deliveryReportTimeoutInSeconds: integer ,
messagingConnect:
{
apiKey: string ,
partner: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (202)

{
value:
[
{
to: string ,
messageId: string ,
httpStatusCode: integer ,
repeatabilityResult: enum ,
successful: boolean ,
errorMessage: string ,
}
,
]
,
}
OptOuts_Add (new)
Description Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
Reference Link ¶

⚼ Request

POST:  /sms/optouts:add
{
body:
{
from: string ,
recipients:
[
{
to: string ,
}
,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
to: string ,
httpStatusCode: integer ,
isOptedOut: boolean ,
errorMessage: string ,
}
,
]
,
}
OptOuts_Remove (new)
Description Remove phone numbers from the optouts list.
Reference Link ¶

⚼ Request

POST:  /sms/optouts:remove
{
body:
{
from: string ,
recipients:
[
{
to: string ,
}
,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
to: string ,
httpStatusCode: integer ,
isOptedOut: boolean ,
errorMessage: string ,
}
,
]
,
}
OptOuts_Check (new)
Description Check the opt out status for a recipient phone number with a sender phone number.
Reference Link ¶

⚼ Request

POST:  /sms/optouts:check
{
body:
{
from: string ,
recipients:
[
{
to: string ,
}
,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
to: string ,
httpStatusCode: integer ,
isOptedOut: boolean ,
errorMessage: string ,
}
,
]
,
}
DeliveryReports_Get (new)
Description Gets delivery report for a specific outgoing message.
Reference Link ¶

⚼ Request

GET:  /deliveryReports/{outgoingMessageId}
{
outgoingMessageId: string ,
api-version: string ,
}

⚐ Response (200)

{
deliveryStatus: enum ,
deliveryStatusDetails: string ,
deliveryAttempts:
[
{
timestamp: string ,
segmentsSucceeded: integer ,
segmentsFailed: integer ,
}
,
]
,
receivedTimestamp: string ,
tag: string ,
messageId: string ,
from: string ,
to: string ,
}

⚐ Response (404)

{
type: string ,
title: string ,
status: integer ,
traceId: string ,
}